package modelLayer;
public class Person
{   private String name,address,postalCode,city,phone;
    private int id;
    public Person(int id, String name, String address, String postalCode, String city, String phone)
    {
        this.name=name;
        this.id=id;
        this.address=address;
        this.postalCode=postalCode;
        this.city=city;
        this.phone=phone;
    }
    public void setId(int id)
    {
        this.id=id;
    }
    public void setName(String name)
    {
        this.name=name;
    }
    public void setAddress(String address)
    {
        this.address=address;
    }
    public void setPostalCode(String postalCode)
    {
        this.postalCode=postalCode;
    }
    public void setCity(String city)
    {
        this.city=city;
    }
    public void setPhone(String phone)
    {
        this.phone=phone;
    }
    public int getId()
    {
       return this.id;
    }
    public String getName()
    {
        return this.name;
    }
    public String getAddress()
    {
        return this.address;
    }
    public String getPostalCode()
    {
        return this.postalCode;
    }
    public String getCity()
    {
        return this.city;
    }
    public String getPhone()
    {
        return this.phone;
    }
    
    public void showInfo(){
    	
    	System.out.println("Id: "+ getId() + "; Name: " + getName() + "; Address: "+ getAddress() + "; Zip: " + 
    			getPostalCode() + "; City: "+ getCity() + "; Phone: " + getPhone());
    	System.out.println("------------------------------------------------");
    }
    
}